const express = require('express');
const router = express.Router();
const { auth } = require('../controller/auth');
const {
    addOrder,
    getOrder,
    leaveHotel,
    getExcel,
    getOrderByQuery
} = require('../controller/order');

router.post('/', auth, addOrder);
router.get('/', getOrder);
router.get('/getOrderByQuery', getOrderByQuery);
router.post('/leaveHotel', auth, leaveHotel);
router.get('/getExcel', getExcel);
// router.get('/getOrderByQuery', getOrderByQuery);

module.exports = router;
